<!-- Content Wrapper. Contains page content -->
<div class="row">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">文章现在有这么多</h3>

                <div class="pull-right">
                    <a href="{:url('article/show')}" class="btn btn-primary">新增文章</a>
                </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
                <table class="table table-hover">
                    <tr>
                        <th>ID</th>
                        <th>标题</th>
                        <th>分类</th>
                        <th>标签</th>
                        <th>发布日期</th>
                        <th>操作</th>
                    </tr>

                    {volist name="list" id="article"}
                    <tr>
                        <td>{$article.id}</td>
                        <td>{$article.title}</td>
                        <td>{$article.cid}</td>
                        <td>{$article.label}</td>
                        <td>{$article.cd}</td>
                        <td>
                            <a href="#"><span
                                    class="glyphicon glyphicon-pencil"></span></a>
                            <a href="javascript:if(confirm('是否删除此文章？')){location.href = '{:url('/article/delete',['id'=>$article['id']])}';}">
                                <span style="color:red" class="glyphicon glyphicon-remove"></span>
                            </a>
                        </td>
                    </tr>
                    {/volist}
                    <!---->
                </table>
            </div>
            <!-- /.box-body -->
        </div>
        {$list->render()}

        <!-- /.box -->
    </div>

</div>

<script>
    $('#articleList').addClass('active');
</script>